load("@rules_xcodeproj//xcodeproj:defs.bzl", "xcodeproj")
load(
    ":xcodeproj_targets.bzl",
    "SCHEME_AUTOGENERATION_MODE",
    "XCODEPROJ_TARGETS",
    "XCSCHEMES",
    "get_extra_files",
    "get_xcode_schemes",
)

exports_files(["README.md"])

[
    xcodeproj(
        name = "xcodeproj-{}".format(generation_mode),
        build_mode = "bazel",
        extra_files = get_extra_files(),
        generation_mode = generation_mode,
        project_name = "rules_ios",
        scheme_autogeneration_mode = SCHEME_AUTOGENERATION_MODE,
        schemes = get_xcode_schemes(),
        tags = ["manual"],
        top_level_targets = XCODEPROJ_TARGETS,
        xcschemes = XCSCHEMES,
    )
    for generation_mode in [
        "legacy",
        "incremental",
    ]
]
